#
# Makefile for the lombo pmc drivers.
#

obj-$(CONFIG_LOMBO_POWER_MANAGER)	+= lombo_pmc.o

ifeq ($(CONFIG_ARCH_LOMBO_N7V1), y)
PMC_CSP_PLATFORM := n7v1
else ifeq ($(CONFIG_ARCH_LOMBO_N7V3), y)
PMC_CSP_PLATFORM := n7v3
else
PMC_CSP_PLATFORM := n7v5
endif

SOURCE := $(srctree)/$(src)/csp/$(PMC_CSP_PLATFORM)/pmc_operate.c

ifeq ($(CONFIG_DRIVERS_HDF_INPUT), y)
HDF_ROOT_DIR = -I$(srctree)/drivers/hdf
ccflags-$(CONFIG_DRIVERS_HDF_INPUT) += $(HDF_ROOT_DIR)/framework/model/input/driver \
    $(HDF_ROOT_DIR)/framework/include/core \
    $(HDF_ROOT_DIR)/framework/core/common/include/host \
    $(HDF_ROOT_DIR)/framework/include/utils \
    $(HDF_ROOT_DIR)/framework/include/osal \
    $(HDF_ROOT_DIR)/framework/ability/sbuf/include \
    $(HDF_ROOT_DIR)/khdf/osal/include \
    $(HDF_ROOT_DIR)/evdev
endif

ifneq ($(wildcard $(SOURCE)), )
obj-y += csp/$(PMC_CSP_PLATFORM)/
else
obj-y += liblombo_pmc.o
$(obj)/liblombo_pmc.o: $(src)/csp/$(PMC_CSP_PLATFORM)/liblombo_pmc
	cp $< $@
endif

